<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>大厅</title>
<link rel="stylesheet" type="text/css" href="/Public/css/style.css"/>
<script type="text/javascript" src="/Public/js/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="/Public/js/index_slider.js"></script>
<script>
	$(function(){
	
	   $('h2.top_menu').click(function(){
		   $('.menu').each(function(){

				$(this).css('display','none');
			   })
			$(this).next('.menu').css("display",'block');
				
		})		
		$(".bang_title li").hover(function(){
		
			index = $(".bang_title li").index(this);
			$(".bang_title li").removeClass('on');
			$(this).addClass('on');
			
			$(".main_bang").removeClass('show');
			$(".main_bang").eq(index).addClass('show');			
		})
	})
	
</script>
</head>

<body>

<div class="wrapper">
<div id="bk">

	<p><img src="/Public/img/logo.png" height='141'></p>

	<h2 class="top_menu"><li id="gk1"><img style="position:relative;top:6px;margin-right:5px" src="/Public/img/ren.png">收藏及最近去过的房间</li></h2>

	<ul class="menu">
		<li><a href="/?id=favorite">收藏房间</a></li>
		<li><a href="/?id=viewed">最近去过的房间</a></li>
	</ul>
		<volist name="menu" id="vo" key='key'>
		<h2 class="top_menu"><li id="gk1"><img style="position:relative;top:6px;margin-right:5px;" src="/Public/img/guanke.png">{$vo.Top}</li></h2>
			<ul class="menu" <if condition="$key eq 1">style="display:block;"</if>>
			<volist name="vo.Child" id="sub">
				<li><a href="/?id={$sub[1]}">{$sub[0]}</a></li>
			</volist>
			</ul>
		</volist>	
	<h2 class="top_menu"><li id="gk1"><img style="position:relative;top:6px;margin-right:5px" src="/Public/img/yule.png">娱乐中心</li></h2>
	<ul class="menu">
		<volist name="games" id="vo">
		<li><a href='{$vo.curl}'>{$vo.cname}({$vo.nonline})</a></li>
		</volist>
	</ul>
</div>
<div class="index_main">

    <div id="focus">
        <ul>
		<volist name="image" id="vo">
            <li><a href="{$vo.clink}" target="_blank"><img src="{$vo.cimage}"  /></a></li>
		</volist>
   
        </ul>
		
    </div>    
    <div class="main_search">
     <form name="seach_room" id='seach_room' method="get" action='/'>
    	<div class="search_input">
        	<input type="text" name="room" class='room' value="房间号/房间名(至少2字)" onfocus="if(this.value!=''){this.value=''}" onblur="if(this.value==''){this.value='房间号/房间名(至少2字)'}"/>
            <input type="button" name='gosearch' class='gosearch'/>
        </div>
      <form>
	  <script>
	  $(function(){
			$('.gosearch').click(function(){
			if($('.room').val()!="房间号/房间名(至少2字)"){
				
				$('#seach_room').submit();
				}else{
				alert('请输入房间号或房间名');
				}
				
			
			})
	  })
	  </script>
    </div>
    <div style="clear:both"></div>
    <div class="main_show">
    <empty name="rooms">
    找不到匹配房间 <a href='/'>返回所有房间列表</a>
    <else />
    <volist name="rooms" id="vo">
    	<div class="show_block">
			<div class="show_image"><img src=' <if condition="($vo.image eq 0)"> /Public/img/noitem.jpg <else /> $vo.image </if>'></div>
			<div class='show_line'></div>
			<div class="show_name">			
				<p class="show_title">{$vo.cname}</p>
				<div class="show_idNo">
					<div class="idNo">{$vo.nvcbid}</div>
					<div class="total">{$vo.ncount}/{$vo.nseats}</div>
				</div>
			</div>
		</div>
		</volist>
    </empty> 
		
     </div>
	 
	 <div style='clear:both'></div>
	 <notempty  name="rooms">
	 <!---分页列表--!--->
	 {$list}
	 </notempty>
	 {$total}

  </div>
  
  <div class="index_bang">
	<div class="bang_ad">
		<div class="money">
		<p>刷花奖池:43亿</p><p>游戏奖池:43亿</p>
		</div>
	
	</div>

	<ul class='bang_title'>
		<li><img src='/Public/img/caifu.png' /></li>
		<li><img src='/Public/img/renqi.png' /></li>
		<li style='margin-right:0px;'><img src='/Public/img/fangwu.png' /></li>
	</ul>
	<div style="clear:both"></div>
	
	<div class="main_bang show">
	    
		
		
		<volist name="weath" id="vo" key="k" empty="暂时没有数据">
		<div class="bang_item">
			<div class="order">
				<img src="/Public/img/top1.jpg" />
				<div class="bang_No bang_No1">{$k}</div>
			</div>
			<div class="bang_name">
				<p class="bang_title">{$vo.nuserid}</p>
				<p class="gongxian">贡献:{$vo.nmoney}</p>
			</div>
		</div>
		</volist>
		
	</div>
	<div class="main_bang">
		<volist name="weath" id="vo" key="k" empty="暂时没有数据">
		<div class="bang_item">
			<div class="order">
				<img src="/Public/img/top1.jpg" />
				<div class="bang_No bang_No1">{$k}</div>
			</div>
			<div class="bang_name">
				<p class="bang_title">{$vo.nuserid}</p>
				<p class="gongxian">贡献:{$vo.nmoney}</p>
			</div>
		</div>
		</volist>		
	</div>  
	<div class="main_bang">
		<volist name="weath" id="vo" key="k" empty="暂时没有数据">
		<div class="bang_item">
			<div class="order">
				<img src="/Public/img/top1.jpg" />
				<div class="bang_No bang_No1">{$k}</div>
			</div>
			<div class="bang_name">
				<p class="bang_title">{$vo.nuserid}</p>
				<p class="gongxian">贡献:{$vo.nmoney}</p>
			</div>
		</div>
		</volist>		
	</div>	
	
  </div>
</div>

</body>
</html>
